﻿using huaxin_Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace huaxin_Interface
{
    public interface huaxin_IPayOrder
    {

        PayOrder GetByOrderId(string orderId);

        /// <summary>
        /// 添加订单信息
        /// </summary>
        /// <param name="order"></param>
        /// <returns></returns>
        int AddOrder(huaxin_order order);

        /// <summary>
        /// 订单回调处理
        /// </summary>
        /// <param name="orderNo"></param>
        /// <param name="transactionId"></param>
        /// <returns></returns>
        int OrderNotifyPay(string orderNo,string transactionId);

        /// <summary>
        /// 根据订单号获取订单详细信息
        /// </summary>
        /// <param name="orderId"></param>
        /// <returns></returns>
        huaxin_order GetOrderIdByInfo(string orderId);

    }
}
